package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	import flash.text.StyleSheet;
	
	import newx.com.config.StaticIni;
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;
	
	/**
	 * 
	 * @author gaoyq
	 * 
	 */
	public class RightNoticeUI extends BaseUI
	{
		public var bg:MovieClip;
		public var pic:NxClip;
		public var lab_name:NxLabel;
		public var lab_can:NxText;
//		public var lab_info:NxLabel;
		public var custom_line:MovieClip;
		public var closeBtn:NxButton;
		public var control:RightNoticeLogic;
		public function RightNoticeUI(popupUI:Boolean=true)
		{
			control = RightNoticeLogic.getInstance();
			super(false);
		}
		
		
		override public function Init():void
		{
//			control.uiinit();
			var txtStyle:StyleSheet	=	new StyleSheet();
			
			txtStyle.setStyle("a:link"		,{color:"#FFFF00",textDecoration:"underline"});
			txtStyle.setStyle("a:visited"	,{color:"#"+StaticIni.getIniVar("Css_a_Task","visited")});
			txtStyle.setStyle("a:hover"	,{color:"#"+StaticIni.getIniVar("Css_a_Task","hover"),textDecoration:"none"});
			lab_can.styleSheet = txtStyle;
		}
		
		override protected function  BeforeShow():void
		{
			control.BeforeShow(this);
		}
		
		override protected function AfterHide():void
		{
			control.AfterHide(this);
		}
	}
}